package android.course.lab1;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class ViewActivity extends Activity{
	public android.widget.EditText yourName;
	public android.widget.Button submitButton;
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
        setContentView(R.layout.view);
        
        TextView nameView = (TextView)findViewById(R.id.textView1);
        
        String yourName = (String) this.getIntent().getExtras().get("userName");
        nameView.setText("Your name is " + yourName);
    }

}
